#ifndef ACEMESH_AM_MACH_H
#define ACEMESH_AM_MACH_H


#ifdef TARG_SW5
#define VECTOR_SIZEb 256
#define VECTOR_SIZEB (VECTOR_SIZEb/8)
#define VECTOR_DBL (VECTOR_SIZEB/sizeof(double))
//#define VECTOR_DBL (VECTOR_SIZEb/8/sizeof(double))
//SW26010
//MPE's clock freqency, MPE(management processing element)
//TODO: to be correct!  it is 1450000000
#define MFREQ 1450000000.0
#define SFREQ 1450000000.0

#elif TARG_SW9
#include <athread.h>
#define VECTOR_SIZEb 512
#define VECTOR_SIZEB (VECTOR_SIZEb/8)
#define VECTOR_DBL (VECTOR_SIZEB/sizeof(double))
//#define VECTOR_DBL (VECTOR_SIZEb/8/sizeof(double))
#define MFREQ 2100000000.0
#define SFREQ 2250000000.0
#define my_h2ldm(element_addr, speid, cgid, type)  *(typeof(type)*)SPEIO_LDM_ADDR(cgid,speid,element_addr)



#endif

#define PE_NROW 8
#define PE_NCOL 8

#endif
